package com.example.hzly.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.hzly.entity.PhotographySpot;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PhotographySpotMapper extends BaseMapper<PhotographySpot> {
    
    @Select("SELECT * FROM photography_spot WHERE destination_id = #{destinationId}")
    List<PhotographySpot> selectByDestinationId(@Param("destinationId") Long destinationId);
}